<template>
  <list-order :rows="rows" v-if="type == 'order'" />
  <list-goods :rows="rows" v-else-if="type == 'goods'" />
  <list-coin :config="config" v-else-if="type == 'coin'" />
  <view v-else>
    <view>{{ config }}</view>
    <view>{{ rows }}</view>
  </view>
</template>

<script>
export default {
  props: {
    rows: Array,
    config: Object,
  },
  computed: {
    type() {
      return this.config.type;
    },
  },
};
</script>
